package jaxb.cow;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * <p>用于读取Excel映射文件的Bean</p>
 * <p>细节描述</p>
 * @author shenjunjie
 * @see [相关类/方法]
 * @date [2014-6-24]
 * @version 1.0
 */
@XmlRootElement(name = "sheet")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class ExcelMappingSheet
{
    /** sheet编号*/
    @XmlAttribute(required = true)
    private Integer sheetNo;
    
    /** 整个sheet对应的类名*/
    @XmlAttribute(required = true)
    private String className;
    
    /**对应单元  列表*/
    @XmlElementWrapper(name="units")
    @XmlElement(name="unit")
    private List<ExcelMappingUnit> units;
    
    /**对应区域 列表*/
    @XmlElement(name="zone")
    private List<ExcelMappingZone> zones;
    
    public Integer getSheetNo()
    {
        return sheetNo;
    }
    
    public void setSheetNo(Integer sheetNo)
    {
        this.sheetNo = sheetNo;
    }
    
    public String getClassName()
    {
        return className;
    }
    
    public void setClassName(String className)
    {
        this.className = className;
    }
    
    public List<ExcelMappingUnit> getUnits()
    {
        return units;
    }
    
    public void setUnits(List<ExcelMappingUnit> units)
    {
        this.units = units;
    }
    
    public List<ExcelMappingZone> getZones()
    {
        return zones;
    }
    
    public void setZones(List<ExcelMappingZone> zones)
    {
        this.zones = zones;
    }
    
}
